package com.eastfair.venuebooking.vo;

import com.eastfair.annotation.annotation.vo.VoInfo;
import com.eastfair.common.vo.AttachmentFileVO;
import com.eastfair.annotation.model.BaseVoGroupClass;
import com.eastfair.venuebooking.dto.ExhibitionTaskSaveDTO;
import com.eastfair.venuebooking.enumeration.ExhibitionTaskFinishStatusEnum;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 实体类
 * 任务
 * </p>
 *
 * @author linan
 * @since 2022-06-08
 */
@Data
@ApiModel(value = "ExhibitionTaskVO", description = "任务VO")
public class ExhibitionTaskVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long id;

    /**
     * 展会id
     */
    @ApiModelProperty(value = "展会ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long exhibitionId;

    /**
     * 任务标题
     */
    @ApiModelProperty(value = "任务标题")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private String taskName;

    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private LocalDateTime endTime;

    /**
     * 环节id
     */
    @ApiModelProperty(value = "环节ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long segmentId;

    /**
     * 环节名称
     */
    @ApiModelProperty(value = "环节名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private String segmentName;

    /**
     * 展厅id
     */
    @ApiModelProperty(value = "展厅ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private String spaceId;

    /**
     * 展厅名称
     */
    @ApiModelProperty(value = "展厅名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private String spaceName;

    /**
     * 完成状态 #{NOT_FINISHED:未完成;HAVE_IN_HAND:进行中;COMPLETED:已完成}
     */
    @ApiModelProperty(value = "完成状态 #{NOT_FINISHED:未完成;HAVE_IN_HAND:进行中;COMPLETED:已完成}")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private ExhibitionTaskFinishStatusEnum finishStatus;

    /**
     * 附件
     */
    @ApiModelProperty(value = "附件")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private List<AttachmentFileVO> attachmentFileList;

    /**
     * 展厅
     */
    @ApiModelProperty(value = "展厅")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private List<ExhibitionTaskSpaceVO> spaceList;

    /**
     * 部门人员
     */
    @ApiModelProperty(value = "部门人员")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private List<ExhibitionTaskOrgVO> exhibitionTaskOrg;

    /**
     * 提醒方式，数据字典,分割
     */
    @ApiModelProperty(value = "提醒方式，数据字典,分割")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private String remindWay;

    /**
     * 备注（任务描述）
     */
    @ApiModelProperty(value = "备注（任务描述）")
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private String remark;

    @Data
    @ToString(callSuper = true)
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class ExhibitionTaskSpaceVO{

        @ApiModelProperty(value = "展厅ID")
        @JsonInclude(JsonInclude.Include.NON_NULL)
        @VoInfo(groups = {BaseVoGroupClass.all.class})
        Long spaceId;

        @ApiModelProperty(value = "展厅名称")
        @JsonInclude(JsonInclude.Include.NON_NULL)
        @VoInfo(groups = {BaseVoGroupClass.all.class})
        String spaceName;
    }

}
